Class InputNeuron

java.lang.Object
edu.uky.ai.ml.nn.Neuron
edu.uky.ai.ml.nn.InputNeuron

public class InputNeuron
extends Neuron
A special subclass of Neuron whose value can be directly set.
Author:
Stephen G. Ware
  • Field Summary

    Fields inherited from class edu.uky.ai.ml.nn.Neuron

    children, parents
  • Constructor Summary

    Constructors 
    Constructor Description
    InputNeuron()  
  • Method Summary

    Modifier and Type Method Description
    double getValue()
    Returns the current value of this neuron based on the input it is receiving from its parents and its activation functions, which in this case is the sigmoid function.
    void setValue​(double value)
    Sets the node's value.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getValue

      public double getValue()
      Description copied from class: Neuron
      Returns the current value of this neuron based on the input it is receiving from its parents and its activation functions, which in this case is the sigmoid function.
      Overrides:
      getValue in class Neuron
      Returns:
      the neuron's value
    • setValue

      public void setValue​(double value)
      Sets the node's value.
      Parameters:
      value - the value